import { axios } from '~/plugins/axios';

// 根据id获取会议详情
export const getEvents = (params?: any) => axios({
  method: 'get',
  url: `/events/detail/${params as string} `,
}) as Promise<any>;

// 新增会议详情
export const addEvents = (params: any) => axios({
  method: 'post',
  url: '/events/add',
  data: {
    ...params,
  },
}) as Promise<any>;
